function addexpress(){
	var expresswo = $("#listform").find("input:eq(0)").val();
	var sendname = $("#listform").find("input:eq(1)").val();
	var sendphone = $("#listform").find("input:eq(2)").val();
	var sendaddress = $("#listform").find("input:eq(3)").val();
	var receivename = $("#listform").find("input:eq(4)").val();
	var receivephone = $("#listform").find("input:eq(5)").val();
	var receiveaddress = $("#listform").find("input:eq(6)").val();
	var sendtime = $("#listform").find("input:eq(7)").val();
	var way= $("#listform").find("input:eq(8)").val();
	if(expresswo==null||expresswo==''){
		layer.msg('快递单号不能为空');
        return; 
	 }
	if(sendname==null||sendname==''){
		layer.msg('客户姓名不能为空');
        return; 
	 }
	if(sendphone==null||sendphone==''){
		layer.msg('单位不能为空');
        return; 
	 }
	if(sendaddress==null||sendaddress==''){
		layer.msg('部门不能为空');
        return; 
	 }
	if(receivename==null||receivename==''){
		layer.msg('需求不能为空');
        return; 
	 }
	if(receivephone==null||receivephone==''){
		layer.msg('输出文件不能为空');
        return; 
	 }
	if(receiveaddress==null||receiveaddress==''){
		layer.msg('相关部门不能为空');
        return; 
	 }
	if(sendtime==null||sendtime==''){
		layer.msg('相关部门不能为空');
        return; 
	 }
	if(way==null||way==''){
		layer.msg('寄件类型不能为空');
        return; 
	 }
	$.ajax({
		url:'/express/add',
		type:'post',
		data:{'sendtime':sendtime,'expresswo':expresswo,'sendname':sendname,'sendaddress':sendaddress,'receivename':receivename,'receivephone':receivephone,'receiveaddress':receiveaddress,'sendphone':sendphone},
		dataType:'json',
		success:function(res){
			if(res.success){
				layer.msg('添加成功')
				$("#listform").find("input:eq(0)").val(' ');
				$("#listform").find("input:eq(1)").val(' ');
				$("#listform").find("input:eq(2)").val(' ');
				$("#listform").find("input:eq(3)").val(' ');
				$("#listform").find("input:eq(4)").val(' ');
				$("#listform").find("input:eq(5)").val(' ');
			    $("#listform").find("input:eq(6)").val(' ');
				$("#listform").find("input:eq(7)").val(' ');
				return
			}
			layer.msg('添加失败')
		},
		error:function(){
			layer.msg('连接失败')
		}
	})

}